<table border="0" cellspacing="1" width="100%" height="100%">
<tr>
    <td width="100%" valign="top"><b>{$smarty.const.LA_UPLOAD_DOC}</b><br/><br/>

{if $error}
	<p><span class="red"><b>{$smarty.const.LA_WARNING}</b></span><br/>{$error}</p>
{/if}

{if $upload_ok}
	<p><b>{$smarty.const.LA_VIDEO_UPLOAD_SUCCESS}</b></p>
{/if}

{if $image_upload_size && !$error}
	<p>{$image_upload_size}</p>
{/if}


{if !$error}
	<p>{$upload_status}</p>
{/if}



{if $show_form}

<form method='post' action='{$phpself}' enctype='multipart/form-data'>
	<input type='hidden' name='doc_ad_id' value='{$doc_ad_id}'>
	<input type='hidden' name='MAX_FILE_SIZE' value='10000000000'>
	<br />{$smarty.const.LA_FILENAME}<br />
	<input name='photo' size='50' type='file'></p>
	<input type='submit' name='submit' value='{$smarty.const.LA_UPLOAD_BUTTON}'>

</form>

{/if}

<br/>
<form method='get' action='member.php'>
<input type='submit' name='submit' class="button" value='{$smarty.const.LA_FINISH}'></p>

{if $image_list}
	<table class="box" cellpadding="0" cellspacing="0">
		<tr>
			<th>{$smarty.const.LA_TYPE}</th>
			<th>{$smarty.const.LA_SIZE}</th>
			<th>{$smarty.const.LA_SIZE}</th>
			<th>{$smarty.const.LA_DEL} </th>
		</tr>
	{foreach item=image from=$image_list}  
		
		<tr>
			<td>
				<img src="{$url}/layout_images/new/{$image.ext}.gif" hspace="10" align="left" border="0" alt="{$image.ext}" /> {$image.ext}
			</td>	
			<td>
				<a href="images/docs/{$image.name}" target="_blank">{$image.name}</a>
			</td>
			<td>{$image.size} {$smarty.const.LA_KB}</td>
			<td>
				<a href='{$phpself}?doc_ad_id={$doc_ad_id}&del_id={$image.id}'>
				<img src="{$url}/layout_images/new/delete.gif" border="0" alt="{$smarty.const.LA_DEL_DOC1}" />
			</a>
		</td>
		</tr>
	{/foreach}
	</table>
{/if}
</form>

</td></tr>
</table>